package com.xcity.pomelo.response;

import com.xcity.db.entity.Employee;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class EmployeeStateSwitchResponse extends Response {

	private long id;
	private int state;
	
	public EmployeeStateSwitchResponse(int serial, Employee employee) {
		super(serial);
		this.id = employee.getId();
		this.state = employee.getState().codeOfOldVersion();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

}
